import request from '@/utils/request'

// 查询排课列表
export function listEduScheduling(query) {
  return request({
    url: '/education/eduScheduling/list',
    method: 'get',
    params: query
  })
}

// 查询排课详细
export function getEduScheduling(id) {
  return request({
    url: '/education/eduScheduling/' + id,
    method: 'get'
  })
}

// 新增排课
export function addEduScheduling(data) {
  return request({
    url: '/education/eduScheduling',
    method: 'post',
    data: data
  })
}


// 手工排课
export function manualScheduling(data) {
  return request({
    url: '/education/eduScheduling/manual',
    method: 'post',
    data: data
  })
}

// 自动排课
export function autoScheduling(semId) {
  return request({
    url: '/education/eduScheduling/auto/'+semId,
    method: 'post'
  })
}

// 修改排课
export function updateEduScheduling(data) {
  return request({
    url: '/education/eduScheduling',
    method: 'put',
    data: data
  })
}

// 删除排课
export function delEduScheduling(id) {
  return request({
    url: '/education/eduScheduling/' + id,
    method: 'delete'
  })
}

// 导出排课
export function exportEduScheduling(query) {
  return request({
    url: '/education/eduScheduling/export',
    method: 'get',
    params: query
  })
}
